/**
 * Created by 121 on 2016/4/08.
 */
require.config(require_config);

define([
    'jquery',
    'common',
    'ready',
    'template',
], function( $, common,ready,template) {

    console.log('login');
    var main = function() {
        this.init();console.log('login');
    };

    main.prototype = {
        init: function() {
            this.event();
        },

        event: function() {
            var _this = this;
            $.ajax({
                url:'/api_list',
                type: 'get',
                success: function (res) {
                    $('#amount_list').html(template('data-item', {'data': res.data.tab}));
                    $('#amount-list').html(template('amount-item', {'data': res.data.series}))
                }

            });
        }

    };

    (new main());

});
